<tr>
    <?php foreach ($this->tableColumn as $tb_column) { ?>
    <th <?php echo isset ($tb_column['align']) ? $tb_column['align'] : '' ?>>
        <?php if (isset($tb_column['field'])) { ?>
        <a data-order-fld="<?php echo $tb_column['field'] ?>"
           data-order-dir="<?php echo ($tb_column['field'] == $this->order_field) ? ($this->order_dir == 'DESC' ? 'ASC' : 'DESC') : 'DESC'  ?>"
           class="orderByLink" href="#">
            <?php echo $this->trans->_($tb_column['title']);?>
        </a>
        <?php if ($tb_column['field'] == $this->order_field) { ?>
            &nbsp;
            <a data-order-fld="<?php echo $tb_column['field'] ?>"
               data-order-dir="<?php echo ($tb_column['field'] == $this->order_field) ? ($this->order_dir == 'DESC' ? 'ASC' : 'DESC') : 'DESC'  ?>"
               class="orderByLink" href="#">
                <img src="/img/arrow_<?php echo (isset($this->order_dir)) ? ($this->order_dir) : 'ASC' ?>.gif"/>
            </a>
            <?php } ?>
        <?php
    } else {
        echo $this->trans->_($tb_column['title']);
    }  ?>
    </th>
    <?php } ?>
</tr>